package com.sau.pixelcart.service;

import com.sau.pixelcart.domain.entity.InventoryAlert;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sau.pixelcart.domain.entity.ProductInventory;

import java.util.Map;

/**
 * <p>
 * 库存预警事件表 服务类
 * </p>
 *
 * @author Inton
 * @since 2025-03-08
 */
public interface IInventoryAlertService extends IService<InventoryAlert> {

    /**
     * 检查库存警报信息
     * @Param productId
     */
    void checkStockWarning(String productId);

    /**
     * 库存预警状态为已处理
     * @param productInventory
     */
    void processAlert(ProductInventory productInventory);

}
